package com.xzlf.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public interface Constans {
    String BLOCKQUEUE = "LOCKQUEUE::MUTIL::CODITION";
    String FLAGKEY = "ASYNC::FLAG";
    String RESULT_KEY_PREFIX = "ASYNC::RESULT::";
    ReentrantLock REENTRANT_LOCK = new ReentrantLock();
    ReentrantLock REENTRANT_LOCK_UP = new ReentrantLock();
    Condition ASYNCRUN = REENTRANT_LOCK.newCondition();
    Condition ASYNCUP = REENTRANT_LOCK_UP.newCondition();
    Condition LISTENERUN = REENTRANT_LOCK.newCondition();
    Condition LISTENEUP = REENTRANT_LOCK_UP.newCondition();
}
